package com.yunpeng.dishes.common.dtos.business;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * DishesFoodSaveDTO 菜品食材保存时传输对象
 *
 * @author : Moore(hemw)
 * @date : 2020-03-27
 */
public class DishesFoodSaveDTO implements Serializable {

    /**
     * 食材名称
     */
    private String name;

    /**
     * 食材代码
     */
    private String code;

    /**
     * 食材占比
     */
    private BigDecimal proportion;

    /**
     * 食材含量
     */
    private BigDecimal netContent;

    private Short seq;

    public DishesFoodSaveDTO() {
    }

    public DishesFoodSaveDTO(String name, String code, BigDecimal proportion, BigDecimal netContent, Short seq) {
        this.name = name;
        this.code = code;
        this.proportion = proportion;
        this.netContent = netContent;
        this.seq = seq;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getProportion() {
        return proportion;
    }

    public void setProportion(BigDecimal proportion) {
        this.proportion = proportion;
    }

    public BigDecimal getNetContent() {
        return netContent;
    }

    public void setNetContent(BigDecimal netContent) {
        this.netContent = netContent;
    }

    public Short getSeq() {
        return seq;
    }

    public void setSeq(Short seq) {
        this.seq = seq;
    }

    @Override
    public String toString() {
        return "DishesFoodSaveDTO{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", proportion=" + proportion +
                ", netContent=" + netContent +
                ", seq=" + seq +
                '}';
    }
}
